Print angle brackets arround e-mail addresses in the about dialog
authorMathias Hasselmann <hasselmm@src.gnome.org>
Sat, 12 Jan 2008 11:10:14 +0000 (11:10 +0000)
committerMathias Hasselmann <hasselmm@src.gnome.org>
Sat, 12 Jan 2008 11:10:14 +0000 (11:10 +0000)
(#409520, Mariano Suárez-Alvarez).

* gtk/gtkaboutdialog.c: Keep e-mail brackets in add_credits_page().

svn path=/trunk/; revision=19354

ChangeLog
gtk/gtkaboutdialog.c

index 0bd23feb9fcbbfdb5e2876f08a63c2b2933dfa7a..b96a7bff54e82598504ec5d68fbdcdd268d6283b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2008-01-12  Mathias Hasselmann  <mathias@openismus.com>
+
+       Print angle brackets arround e-mail addresses in the about dialog
+       (#409520, Mariano Suárez-Alvarez).
+
+       * gtk/gtkaboutdialog.c: Keep e-mail brackets in add_credits_page().
+
 2008-01-11 13:28:02  Tim Janik  <timj@imendio.com>
 
        * gtk/gtktestutils.c (gtk_test_create_widget): removed old testutils
index 540546aab7409b6f50c2bceb7a1db9fc2c1a24e2..f57a474e572c10b971d8abb7eb74d72b8583510d 100644 (file)
@@ -1966,21 +1966,23 @@ add_credits_page (GtkAboutDialog *about,
              gchar *link;
              const gchar *link_type;
              GtkTextTag *tag;
-             
-             gtk_text_buffer_insert_at_cursor (buffer, q0, q1 - q0);
-             gtk_text_buffer_get_end_iter (buffer, &end);
-
-             q0 = q2;
 
-             if (*q1 == '<') 
+             if (*q1 == '<')
                {
+                 gtk_text_buffer_insert_at_cursor (buffer, q0, (q1 - q0) + 1);
+                 gtk_text_buffer_get_end_iter (buffer, &end);
                  q1++;
-                 q0++;
                  link_type = I_("email");
                }
-             else 
-               link_type = I_("url");
-             
+             else
+               {
+                 gtk_text_buffer_insert_at_cursor (buffer, q0, q1 - q0);
+                 gtk_text_buffer_get_end_iter (buffer, &end);
+                 link_type = I_("url");
+               }
+
+             q0 = q2;
+
              link = g_strndup (q1, q2 - q1);
 
              if (g_slist_find_custom (priv->visited_links, link, (GCompareFunc)strcmp))